<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Retained extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'retained';
    protected $fillable = ['id', 'name','user_openid','address','phone','remarks','deleted_at','created_at', 'updated_at'];

    public function retained()
    {
        return $this->belongsTo(RcUser::class,'open_id','user_openid');
    }
}
